﻿using StructureMap.Configuration.DSL;
using DAL.Engine.Interface;
using DAL.Nhibernate.Interface;
using DAL.Nhibernate;
using DAL.Nhibernate.Configuration;
using DAL.Nhibernate.Repository;
using NHibernate;

namespace DAL.NHibernate
{
    public class NHibernateRegistry : Registry
    {
        public NHibernateRegistry()
            : base()
        {
            //For<IConfiguration>().Singleton().Use<AppConfiguration>();
            For<IConfigurationManager>().Use<NHibernateConfigurationManager>();
            For<IUserRepository>().Use<UserRepository>();
        }
    }
}
